//
// Created by Administrator on 2023/5/28.
//
#pragma once
#ifndef LDF_WIDGET_H
#define LDF_WIDGET_H

#include "../../../Rely/Base_Widget/header/Base_Widget.h"
#include "../../../Rely/Client/header/Base_Client.h"
#include "../../../Rely/Title_Button/Close_Button/header/Close_Button.h"
#include "../../../Rely/Title_Button/Max_Button/header/Max_Button.h"
#include "../../../Rely/Title_Button/Mini_Button/header/Mini_Button.h"
#include "../../Widget_Event/header/Widget_Event.h"






class LDF_Widget: public Base_Widget
{
    Q_OBJECT

public:
    LDF_Widget();


    ~LDF_Widget();


    void Profile() override;


    QPoint Size() override;


    Client<LDF_Widget>* Get_Client();


    void Set_Color(int r, int g, int b, int a);


    void Widget_Mini() override;


    void mouseMoveEvent(QMouseEvent* event) override;
    void mousePressEvent(QMouseEvent* event) override;
    void mouseReleaseEvent(QMouseEvent* event) override;


    virtual void paintEvent(QPaintEvent *event) override;
    virtual void resizeEvent(QResizeEvent* event);





private:
    int width {1050};
    int height {600};


    Widget_Event<LDF_Widget>* we;


    Client<LDF_Widget>* client;


    Close_Button<LDF_Widget>* c_b;


    Max_Button<LDF_Widget>* max_b;


    Mini_Button<LDF_Widget>* mini_b;
};







#endif //LDF_WIDGET_H
